package fibonacci3dphysics;

import java.util.ArrayList;

import processing.core.*;

public class Organism {
	
	ArrayList<Cell> cells;
	ArrayList<Connection> connections;
	
	PApplet parent;
	String DNA;
	PVector origin;
	
	Organism(PApplet p_)
	{
		parent = p_;
		cells = new ArrayList<Cell>();
	}
	
	Organism(PApplet p_, String d_)
	{
		parent = p_;
		cells = new ArrayList<Cell>();
		
	}
	
	void grow()
	{
		float h,w;
		h = parent.height;
		w = parent.width;
		
		cells.add(new Cell(parent, new PVector(parent.random(w), parent.random(h),0)));
	}
	
	ArrayList<Cell> getCells()
	{
		return cells;
	}
	
	
	void renderCells()
	{
		for(Cell c : cells)
		{
			c.draw();
		}
	}
	
	void renderConnections()
	{
		
	}
}
